<?php
/**
 * fy_qmy模块微站定义
 *
 * @author 奋斗的小飞鱼
 * @url 
 */
defined('IN_IA') or exit('Access Denied');

class Fy_qmyModuleSite extends WeModuleSite {


	public function doWebBasicset() {
		//这个操作被定义用来呈现 管理中心导航菜单
        global $_W,$_GPC;

        $siteinfo=pdo_get('fy_qmy_site',array('uniacid'=>$_W['uniacid']));

        if(empty($siteinfo)){
            if($_W['ispost']){

                $data=array();
                $data['uniacid']=$_W['uniacid'];
                $data['appname']=$_GPC['appname'];
                $data['codeimg']=$_GPC['codeimg'];

                pdo_insert('fy_qmy_site',$data);

                message('保存成功','','success');

            }
        }else{

            if($_W['ispost']){

                $data=array();
                $data['appname']=$_GPC['appname'];
                $data['codeimg']=$_GPC['codeimg'];

                pdo_update('fy_qmy_site',$data,array('id'=>$siteinfo['id']));

                message('更新成功','','success');

            }
        }

        include $this->template('web/basicset');


	}


}